package cn.fu.core.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.fu.core.bean.TestTb;
import cn.fu.core.dao.TestTbDao;

/**
 * 测试实现类
 * @author 99fu
 *
 */
@Service("testTbService")
@Transactional
public class TestTbServiceImpl implements TestTbService{
	@Autowired
	TestTbDao testTbDao;
	
  public void insertTestTb(TestTb testTb){
	  testTbDao.insertTestTb(testTb);
	  //测试事物回滚
	  //throw  new RuntimeException();
  }

	public List<TestTb> selectTestList() {
		
	 return	testTbDao.selectTestTbList();
	}
}
